package routes

import (
	"github.com/gin-gonic/gin"
	"library-system/controllers"
)

func RegisterBorrowRoutes(privateGroup *gin.RouterGroup) {
	borrowController := controllers.BorrowController{}

	// 借阅组路由
	borrowGroup := privateGroup.Group("/borrows")
	{
		borrowGroup.POST("", borrowController.BorrowBook)
		borrowGroup.PUT("/:id/return", borrowController.ReturnBook)
	}
}
